package hello.controller;

import hello.config.MyConfig;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @description
 * 
 * @author Administrator - JingjingMa
 * @Email <a href="majinding888@163.com">majinding888@163.com</a>
 * @date 2016-12-24 下午9:41:25
 * @version 6.0
 * @DevTool Created By Eclipse 4.3
 * 
 */
@Controller
public class ConfigController {
	private Logger log = LoggerFactory.getLogger(this.getClass());

	@Autowired
	MyConfig config;

	@RequestMapping("/myconfig")
	@ResponseBody
	public String info() {
		log.info("配置解析：{}", config);
		return MyConfig.info;
	}
}
